﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities.ThuQuy;

namespace BLL.ThuQuy
{
    public class QuanLyHoaDon
    {
        public static bool KiemTra(string s, List<HoaDon> ds)
        {
            foreach (var item in ds)
                if (item.MaHD.ToLower().Equals(s.ToLower()))
                    return false;
            return true;

        }
        public static bool KiemTraMaHoaDon(string k)
        {
            if (k.Substring(0, 2).ToUpper() == "HD" && k.Length == 7)
                return true;
            return false;
        }
    }
}
